package com.mls.fivedistrict.pojo;

import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 新闻标签的关系表
 * </p>
 *
 * @author Five Team
 * @since 2018-06-28
 */
@Data
@Accessors(chain = true)
@TableName(value = "t_news_news_tag", resultMap = "BaseResultMap")
public class NewsNewsTag extends Model<NewsNewsTag> {

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 新闻ID
     */
    private Long newsId;
    /**
     * 新闻标签ID
     */
    private Long newsTagId;

    @TableLogic
    private Boolean isDelete;
    private Boolean isEnable;
    private Date createDate;
    private Date updateDate;

    private transient News news;
    private transient NewsTag newsTag;

    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean delete) {
        isDelete = delete;
    }

    public Boolean getEnable() {
        return isEnable;
    }

    public void setEnable(Boolean enable) {
        isEnable = enable;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
